package org.speed.mes.base.service;

import org.speed.mes.base.domain.BsDefectiveItem;
import org.speed.mes.base.domain.vo.BsDefectiveItemVo;
import org.speed.mes.base.domain.bo.BsDefectiveItemBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 不良品项Service接口
 *
 * @author speed-mes
 * @date 2024-06-26
 */
public interface IBsDefectiveItemService {

    /**
     * 查询不良品项
     */
    BsDefectiveItemVo queryById(Long id);

    /**
     * 查询不良品项列表
     */
    TableDataInfo<BsDefectiveItemVo> queryPageList(BsDefectiveItemBo bo, PageQuery pageQuery);

    /**
     * 查询不良品项列表
     */
    List<BsDefectiveItemVo> queryList(BsDefectiveItemBo bo);

    /**
     * 新增不良品项
     */
    Boolean insertByBo(BsDefectiveItemBo bo);

    /**
     * 修改不良品项
     */
    Boolean updateByBo(BsDefectiveItemBo bo);

    /**
     * 校验并批量删除不良品项信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
